package com.cyx.service;


import com.cyx.mapper.UserMapper;
import com.cyx.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;
    @Override
    public User queryUser(String userName) {
        return userMapper.getUserByName(userName);
    }
}
